home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 March / Disc 1 / PCU030201.iso / ads / files / gaming.swf / scripts / DefineButton2_35 / BUTTONCONDACTION on(press).as next >
Encoding:
Text File  |  2001-10-25  |  619 b   |  35 lines

  1. on(press){
  2.    if(_name.substr("8","1") eq "D")
  3.    {
  4.       tellTarget("../")
  5.       {
  6.          if(_currentframe == "20")
  7.          {
  8.             stop();
  9.          }
  10.          else if(_currentframe < "20")
  11.          {
  12.             play();
  13.          }
  14.          else
  15.          {
  16.             gotoAndPlay("41" - _currentframe);
  17.          }
  18.       }
  19.    }
  20.    if(_name.substr("8","1") eq "U")
  21.    {
  22.       tellTarget("../")
  23.       {
  24.          if("20" < _currentframe)
  25.          {
  26.             play();
  27.          }
  28.          else
  29.          {
  30.             gotoAndPlay("41" - _currentframe);
  31.          }
  32.       }
  33.    }
  34. }
  35.